@import '../../styles/variables.scss';

.navbar-container {
  width: 100%;
}

.nav-placeholder {
  height: $nav-height; /* 状态栏高度占位 */
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  height: $nav-height;
  margin-top: 8rpx;
  padding: 20rpx 0;
  position: relative;
}

.nav-back {
  position: absolute;
  left: 20rpx;
  top: 50%;
  transform: translateY(-50%);
  
  image {
    width: 48rpx;
    height: 48rpx;
  }
}

.nav-title {
  line-height: 32rpx;
  font-size: 32rpx;
  font-weight: 500;
  
  &.nav-title-empty {
    height: 0;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
  }
}

.nav-right {
  position: absolute;
  right: 20rpx;
  top: 50%;
  transform: translateY(-50%);
}